{extend name='admin@main'}

{block name="button"}

{/block}

{block name="content"}
<table class="layui-table" lay-skin="line">
    <caption class="margin-bottom-10 text-left">{include file='course_attendance/index_search'}</caption>
    {notempty name='list'}
    <thead>
    <tr>
        <th class='list-table-check-td think-checkbox'>
            <input data-auto-none data-check-target='.list-check-box' type='checkbox'>
        </th>
        <th class='text-left nowrap' >序号</th>
        <th class='text-left nowrap' >课程</th>
        <th class='text-left nowrap' >老师</th>
<!--        <th class='text-left nowrap' >出勤学生</th>-->
<!--        <th class='text-left nowrap' >缺勤学生</th>-->
        <th class='text-left nowrap' >预约的时间段</th>
        <th class='text-left nowrap' >考勤的日期</th>
        <th class='text-left nowrap' >操作</th>
    </tr>
    </thead>
    {/notempty}
    <tbody>
    {foreach $list as $key=>$vo}
    <tr data-dbclick >
        <td class='list-table-check-td think-checkbox'><input class="list-check-box" value='{$vo.id}' type='checkbox'></td>
        <td class='text-left nowrap'>
            {$vo.id|default=''}
        </td>
        <td class='text-left nowrap'>{$vo.course_name|default=''}</td>
        <td class='text-left nowrap'>{$vo.realname|default=''}</td>
        <!--        <td class='text-left nowrap'>{$vo.in_userids|default=''}</td>-->
        <!--        <td class='text-left nowrap'>{$vo.away_userids|default=''}</td>-->

        <td class='text-left nowrap'>{$vo.time|default=''}</td>
        <td class='text-left nowrap'>{$vo.day|default=''}</td>
        <td class='text-left nowrap'>
            <a  class="layui-btn layui-btn-sm layui-btn-primary" data-open='{:url("/admin/course_attendance/index")}?attendance_id={$vo.id}'>详 情</a>
        </td>
    </tr>
    {/foreach}
    </tbody>
</table>

{empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}

{/block}